const mutations = {
    setUser(state, user) {
        state.user = user
    },
    logout(state, payload) {
        state.user = null
        console.log(state.user)
    }
}

export default mutations